package com.lazyfish.superdir.controller;

import com.lazyfish.superdir.entity.Dir;
import com.lazyfish.superdir.entity.FatherDir;
import com.lazyfish.superdir.service.PosterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.lazyfish.util.ResultBuild;
import java.io.File;

@CrossOrigin
@Controller
public class PosterController {
    @Autowired
    private PosterService posterService;
    @RequestMapping("/Dir_getOnePoster")
    @ResponseBody
    public ResultBuild getOnePoster(){
        return new ResultBuild(200,posterService.getPoster(1));
    }
}
